﻿@using System.IO;
@using System.Web;
@{
    ViewBag.Title = "Index";
    Dictionary<string, List<string>> fotosDiretorios = TempData["fotos"] as Dictionary<string, List<string>>;
}

<!--[if lt IE 8]>
    <div style=' clear: both; text-align:center; position: relative;'>
        <a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode">
        <img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." />
    </a>
    </div>
<![endif]-->
<!--[if lt IE 9]>
   	<script type="text/javascript" src="js/html5.js"></script>
    <link rel="stylesheet" type="text/css" media="screen" href="css/ie.css">
<![endif]-->
<link rel="stylesheet" type="text/css" media="screen" href="~/Content/reset.css">
<link rel="stylesheet" type="text/css" media="screen" href="~/Content/style.css">
<link rel="stylesheet" type="text/css" media="screen" href="~/Content/skin-2.css">
<link rel="stylesheet" href="~/Content/zerogrid.css" type="text/css" media="all">
<link rel="stylesheet" href="~/Content/responsive.css" type="text/css" media="all">
<link rel="stylesheet" type="text/css" media="screen" href="~/Content/jquery.fancybox-1.3.4.css">
<script src="~/Scripts/jquery-1.7.min.js"></script>
<script src="~/Scripts/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="~/Scripts/css3-mediaqueries.js"></script>
<script src="~/Scripts/jquery.fancybox-1.3.4.pack.js"></script>
<script>
$(document).ready(function(){
	$("a.plus").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true
	})
});
</script>
<div class="zerogrid">
    @foreach (var fotos in fotosDiretorios)
    {
        <div class="block-2 pad-2">
            <div class="block-4-2 col-3">
                <div class="h2">
                    <h2 class="h2-line-2">@fotos.Key</h2>
                </div>
                <ul class="gallery">
                    @foreach (string foto in fotos.Value)
{
                        string endereco = foto.Replace("~\\", String.Empty);
    <li><a class="plus" href="@foto.Replace("~\\", String.Empty)"><img width="182" height="164" src="@endereco" alt=""></a></li>
}
                </ul>
            </div>
        </div>
    }
</div>